//
//  UIViewController+GKDPageItem.m
//  sojex
//
//  Created by longxdragon on 2017/8/9.
//  Copyright © 2017年 finance. All rights reserved.
//

#import "UIViewController+GKDPageItem.h"
#import <objc/runtime.h>

@implementation UIViewController (GKDPageItem)

@dynamic isAppear;
static const NSString *kGKDPageItemIsAppear = @"kGKDPageItemIsAppear";

- (void)setIsAppear:(BOOL)isAppear {
    objc_setAssociatedObject(self, &kGKDPageItemIsAppear, @(isAppear), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (BOOL)isAppear {
    return [objc_getAssociatedObject(self, &kGKDPageItemIsAppear) boolValue];
}

@end
